package com.sky.model;

import com.sky.frame.annotation.Title;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Title(title = "合同管理")
public class Contract extends BaseModel{

    private String id;
    @Title(title = "合同名称")
    private String name;
    @Title(title = "甲方法人")
    private String partya;
    @Title(title = "甲方电话")
    private String phoneno;
    @Title(title = "甲方身份证")
    private String idcard;
    @Title(title = "合同金额")
    private Float amount;
    @Title(title = "合同起日")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startdate;
    @Title(title = "合同止日")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date enddate;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPartya() {
        return partya;
    }

    public void setPartya(String partya) {
        this.partya = partya == null ? null : partya.trim();
    }

    public String getPhoneno() {
        return phoneno;
    }

    public void setPhoneno(String phoneno) {
        this.phoneno = phoneno == null ? null : phoneno.trim();
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard == null ? null : idcard.trim();
    }

    public Float getAmount() {
        return amount;
    }

    public void setAmount(Float amount) {
        this.amount = amount;
    }

    public Date getStartdate() {
        return startdate;
    }

    public void setStartdate(Date startdate) {
        this.startdate = startdate;
    }

    public Date getEnddate() {
        return enddate;
    }

    public void setEnddate(Date enddate) {
        this.enddate = enddate;
    }
}